package cn.aws360.boot.system.api.pojo.response;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author junnan
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("系统日志-响应实例")
public class SysLogsModel {

    @ApiModelProperty(value = "日志ID")
    private Long id;

    @ApiModelProperty(value = "日志时间")
    private LocalDateTime epoch;

    @ApiModelProperty(value = "日志标题")
    private String title;

    @ApiModelProperty(value = "操作类型")
    private Integer opsType;

    @ApiModelProperty(value = "操作用户")
    private String opsUser;

    @ApiModelProperty(value = "请求方IP")
    private String reqIp;

    @ApiModelProperty(value = "请求方式")
    private String reqMethod;

    @ApiModelProperty(value = "请求地址")
    private String reqUri;

    @ApiModelProperty(value = "请求参数")
    private String reqParams;

    @ApiModelProperty(value = "执行方法")
    private String exeMethod;

    @ApiModelProperty(value = "响应类型")
    private Integer resType;

    @ApiModelProperty(value = "响应耗时")
    private Long resDuration;

    @ApiModelProperty(value = "响应结果")
    private String resResult;

    @ApiModelProperty(value = "异常信息")
    private String expMessage;

}
